package com.finance.report.export;

import com.finance.base.constant.BaseConstants;
import com.finance.base.exception.BaseException;
import com.finance.framework.lang.BeanUtils;
import com.finance.report.bean.pojo.SupplierSalary;
import com.finance.util.export.ExportBeanParse;


/**
 * Created by ljg on 2017/4/10.
 */
public class SupplierSalaryParse extends ExportBeanParse<SupplierSalary,SupplierSalaryParseBean> {

    @Override
    protected SupplierSalaryParseBean parse(SupplierSalary supplierSalary) {
        SupplierSalaryParseBean bean=new SupplierSalaryParseBean();
        try {
            BeanUtils.copyProperties(bean,supplierSalary);
        } catch (Exception e) {
            throw new BaseException(BaseConstants.ERR_COPYBEAN);
        }
        return bean;
    }
}
